package com.tuanzi.loan.web.lazy.businesssystem;

import com.tuanzi.loan.business.service.businesssystem.BusinessPrepayService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.businesssystem.BusinessPrepayRequest;
import com.tuanzi.loan.vo.response.businesssystem.BusinessPrepayResponse;
import org.springframework.data.domain.Page;


public class BusinessPrepayLazyDataModel extends BaseLazyDataModel<BusinessPrepayRequest, BusinessPrepayResponse> {
    private BusinessPrepayService service = SpringContextHolder.getBean(BusinessPrepayService.class);
    public BusinessPrepayLazyDataModel(BusinessPrepayRequest settlementPrepayRequest) {
        super(settlementPrepayRequest);
    }
    @Override
    protected Page<BusinessPrepayResponse> doLoad(PageSearcher<BusinessPrepayRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}